home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_54839.txt < prev    next >
Text File  |  1991-02-27  |  659b  |  29 lines

  1. -- card: 54839 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10. Occasionally this arrangement may lead to difficulties.  Consider a circular definition involving two classes:
  11.  
  12.     struct    Person:Generic_Class
  13.     {
  14.         Parent      *parent_ptr;
  15.               .
  16.               .
  17.     };
  18.  
  19.     struct    Parent:Person
  20.     {
  21.               .
  22.               .
  23.     };
  24.  
  25. The Person class contains an instance variable which is a pointer to a Parent object, and the Parent class is descended from the Person class.
  26.  
  27. -- part contents for background part 7
  28. ----- text -----
  29. 178